$OpenBSD: patch-src_nsgenbind-ast_h,v 1.1 2016/11/30 07:35:00 bentley Exp $
Fix undefined behavior in AST node creation.

From upstream 3b3b926d7fb92361b1e8eed2efb351c32cb7bfaa.
--- src/nsgenbind-ast.h.orig	Sat Nov 19 02:44:03 2016
+++ src/nsgenbind-ast.h	Mon Nov 28 18:51:54 2016
@@ -71,7 +71,18 @@ int genbind_parsefile(char *infilename, struct genbind
 
 char *genbind_strapp(char *a, char *b);
 
+/**
+ * create a new node with value from pointer
+ */
 struct genbind_node *genbind_new_node(enum genbind_node_type type, struct genbind_node *l, void *r);
+
+/**
+ * create a new number node
+ *
+ * Create a node with of number type
+ */
+struct genbind_node *genbind_new_number_node(enum genbind_node_type type, struct genbind_node *l, int number);
+
 struct genbind_node *genbind_node_link(struct genbind_node *tgt, struct genbind_node *src);
 
 struct genbind_node *genbind_node_prepend(struct genbind_node *list, struct genbind_node *inst);
